package xyx.ysfwpt.service;

import org.springframework.stereotype.Service;
import xyx.ysfwpt.dao.TestDao;
import xyx.ysfwpt.model.User;

import javax.annotation.Resource;
import java.util.List;

@Service("TestService")
public class TestServiceImpl implements TestService{
    @Resource
    TestDao testDao;

    @Override
    public List<User> selectUser() {
        return testDao.selectUser();
    }

    public User selectUserById(int id){
        return testDao.selectUserById(id);
    }

}
